import request from '@/utils/request'

// base
const base = process.env.VUE_APP_BASE_API3 + '/olmList'
export function baseRequest(val) {
  return request({
    url: base + val.url,
    method: val.method,
    data: val.data
  })
}
// url: /queryListAnalysisData
// url: /queryListAnalysisDataNoRole
// rul: /queryDeptListAnalysisInfo
// url: /queryDeptListAnalysisInfoNoRole
// 分析By Total
export function queryListAnalysisData(val, url) {
  return baseRequest({
    url: url,
    method: 'post',
    data: val,
    timeout: 600000
  })
}

// 分析By dept
export function queryDeptListAnalysisInfo(val, url) {
  return baseRequest({
    url: url,
    method: 'post',
    data: val,
    timeout: 600000
  })
}
